<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * @Constants
 */
class ErrorCode extends AbstractConstants
{
    /**
     * @Message("Server Error！")
     */
    public const SERVER_ERROR = 500;
    const SUCCESS = 200;   // 接口处理成功
    const VALIDATION_ERROR = 101;   // 接口提交字段验证失败
    const TOKEN_FALSE = 1000;   // 需要登录未登录
    const ERROR    = 1001;   // 接口通用处理失败
    const LOGIN_FAIL_NULL    = 1004;   // 登录异常通用处理失败
    const ALREADY_SUBSCRIBE = 1011;//你已经是订阅会员了
    const PARAMS_FALSE = 1012;//参数错误导致 不存在
    const NOT_SUBSCRIBE = 1013;//现在还不是订阅会员
    const ORDER_WORK_DATE = 1014;//现在还不是订阅会员









    const REGISTER_CODE_FAIL = 2001;//验证码错误
    const REGISTER_ALREADY = 2002;//已经注册


    const REGISTER_FAIL = 2003;//注册失败

    const LOGIN_PASSWORD = 2004;//密码错误

    const LOGIN_USER_NULL = 2005;//账户不存在


    const APPLY_REVIEW = 2006;//资料正在审核中
    const PHOTO_MAX9 = 2007;//相册最多9张
    const BIND_ALREADY = 2008;//已经绑定成功

    const PASSWORD_ISSET = 2009;//已经设置过密码


    const WITHDRAWAL_AMOUNT_FAIL = 2010;//余额未达到提现金额


    const WORK_BEFORE = 2011;//不能设置之前日期的日程
    const WORK_ALREADY = 2012;//日程已经设置请勿重复设置

    const WORK_DATE_NOT = 2013;//还未设置上班时间

    const WORK_TIME_FAIL = 2014;//工作时间选择错误












}
